﻿@model Free2AskWeb.Models.QuestionsModel

@foreach(var q in Model.All)
{
    <dl>
        <dt id="status-container">
            <div id="voteArrow"></div>
            <div id="voteDiv">
	            <div id="voteCount">@q.Votes.Sum(v=>v.Value).ToString()</div>
  	            <div id="voteText">Vote</div>
  	            <div id="answerCount">@q.Answers.Count.ToString()</div>
  	            <div id="answerText">Answer</div>
            </div>
   	        <div id="viewCount">0 Views</div>
        </dt>
        <dd id="summary">
	        <div><h3>@Html.ActionLink(q.Title,"Details","Question",new {questionID=q.ID},null) </h3>
	        </div>
   	        <div>@HttpUtility.HtmlDecode(q.PostContent).StripHtmlTags().Truncate(170)</div>
        </dd>
        <dd class="AuthorInfo"><h3>Author: @q.Author.UserName</h3></dd>
    </dl>
}
